LocalVideoStats class Null safety

本地视频流统计信息,统计周期为 2s

本地用户发布视频流成功后,SDK 会周期性地通过 RTCRoomEventHandler.onLocalStreamStats 通知用户发布的视频流在此次统计周期内的发送状况,此数据结构即为回调给用户的参数类型。

Constructors

LocalVideoStats({double? sentKBitrate, int? inputFrameRate, int? sentFrameRate, int? encoderOutputFrameRate, int? renderOutputFrameRate, int? statsInterval, double? videoLossRate, int? rtt, int? encodedBitrate, int? encodedFrameWidth, int? encodedFrameHeight, int? encodedFrameCount, int? codecType, bool? isScreen})
const

Properties

codecType → int?
视频的编码类型
final
encodedBitrate → int?
视频编码码率 [...]
final
encodedFrameCount → int?
此次统计周期内实际发送的分辨率最大的视频流的发送的视频帧总数
final
encodedFrameHeight → int?
实际发送的分辨率最大的视频流的视频编码高度,单位为 px
final
encodedFrameWidth → int?
实际发送的分辨率最大的视频流的视频编码宽度,单位为 px
final
encoderOutputFrameRate → int?
编码器输出帧率 [...]
final
hashCode → int
The hash code for this object. [...]
read-only, inherited
inputFrameRate → int?
采集帧率 [...]
final
isScreen → bool?
所属用户的媒体流是否为屏幕流 [...]
final
renderOutputFrameRate → int?
本地渲染帧率 [...]
final
rtt → int?
往返时延,单位为 ms
final
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
sentFrameRate → int?
发送帧率 [...]
final
sentKBitrate → double?
发送码率 [...]
final
statsInterval → int?
统计间隔,默认为 2000ms。 [...]
final
videoLossRate → double?
视频丢包率 [...]
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) → bool
The equality operator. [...]
inherited